<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditMatriculaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_idMatricula}" for="idMatricula" />
                    <h:inputText id="idMatricula" value="#{matriculaController.selected.idMatricula}" title="#{bundle.EditMatriculaTitle_idMatricula}" required="true" requiredMessage="#{bundle.EditMatriculaRequiredMessage_idMatricula}"/>
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_idEstudiante}" for="idEstudiante" />
                    <h:inputText id="idEstudiante" value="#{matriculaController.selected.idEstudiante}" title="#{bundle.EditMatriculaTitle_idEstudiante}" />
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_idCurso}" for="idCurso" />
                    <h:inputText id="idCurso" value="#{matriculaController.selected.idCurso}" title="#{bundle.EditMatriculaTitle_idCurso}" />
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_especialidad}" for="especialidad" />
                    <h:inputText id="especialidad" value="#{matriculaController.selected.especialidad}" title="#{bundle.EditMatriculaTitle_especialidad}" />
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_anio}" for="anio" />
                    <h:inputText id="anio" value="#{matriculaController.selected.anio}" title="#{bundle.EditMatriculaTitle_anio}" />
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_costo}" for="costo" />
                    <h:inputText id="costo" value="#{matriculaController.selected.costo}" title="#{bundle.EditMatriculaTitle_costo}" />
                </h:panelGrid>
                <h:commandLink action="#{matriculaController.update}" value="#{bundle.EditMatriculaSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditMatriculaViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{matriculaController.prepareList}" value="#{bundle.EditMatriculaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditMatriculaIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
